
#define MAX_TASKS 2

struct dbd_hostdef {
	char ip[20];
	int port;
	int task;
	struct dbd_hostdef *next;
};

int dbd_pick_one_host(struct dbd_hostdef **host);

int dbd_free_one_host(struct dbd_hostdef *host);

int dbd_empty_state();
